package com.etoak.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * Checklist库产品实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("checklist_product")
public class Product {

    @TableField("id")
    private String id;

    @TableField("product_name")
    private String productName;

    @TableField("territory_id")
    private String territoryId;

    @TableField("territory_name")
    private String territoryName;

    @TableField("product_line_id")
    private String productLineId;

    @TableField("product_line_name")
    private String productLineName;

    @TableField("del_status")
    private String delStatus;

    @TableField("create_by")
    private String createBy;

    @TableField("create_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField("update_by")
    private String updateBy;

    //@Excel(name = "更新时间")
    @TableField("update_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

}
